package com.etcn.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 短信配置读取
 *
 * @author guozc
 */
@PropertySource(value = {"classpath:config/sms_template.properties"}, ignoreResourceNotFound = true, encoding = "utf-8")
@Configuration
public class SmsConfig extends AbstractConfig {

    /**
     * 获取模板
     * @param templateName 模板名称
     * @return
     * @throws Exception
     */
    public String getTemplate(String templateName) throws Exception {
        return getConfig(templateName);
    }
}
